package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.BusinessCardRequest;
import one.stand.request.CustomerRequest;
import one.stand.request.UserTaskRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("userTask")
public class UserTaskController extends BaseController {

    /**
     * 录入企业员工本月目标
     *
     * @param request
     * @return
     */
    @PostMapping("addMoneyNum")
    public ResultModel addMoneyNum(@RequestBody UserTaskRequest request) {
        return userTaskService.addMoneyNum(request);
    }

    /**
     * 企业员工移交客户
     *
     * @param request
     * @return
     */
    @PostMapping("moveCustomer")
    public ResultModel moveCustomer(@RequestBody CustomerRequest request) {
        return userTaskService.moveCustomer(request);
    }

    /**
     * 企业员工退出企业
     *
     * @param request
     * @return
     */
    @PostMapping("quitCompany")
    public ResultModel quitCompany(@RequestBody BusinessCardRequest request) {
        return userTaskService.quitCompany(request);
    }

    /**
     * 解散企业
     *
     * @param request
     * @return
     */
    @PostMapping("dissolutionCompany")
    public ResultModel dissolutionCompany(@RequestBody BusinessCardRequest request) {
        return userTaskService.dissolutionCompany(request);
    }

}
